package com.wish.finance.controller;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

import com.wish.base.dto.CwPayOrderDto;
import com.wish.base.entity.CwPaymentPlan;
import com.wish.base.service.ICwPayOrderService;
import com.wish.base.service.ICwPaymentPlanService;
import com.wish.base.service.ISfContractService;
import com.wish.common.core.web.controller.BaseController;
import com.wish.common.core.web.domain.AjaxResult;
import com.wish.common.core.web.page.TableDataInfo;
import com.wish.common.security.annotation.PreAuthorize;
import com.wish.common.security.service.TokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 支付订单（支付流水信息）Controller
 * 
 * @author wish
 * @date 2022-05-27
 */
@RestController
@RequestMapping("/order")
public class TCwPayOrderController extends BaseController
{
    @Autowired
    private ICwPayOrderService cwPayOrderService;

    /**
     * 查询支付订单（支付流水信息）列表
     */
    @PreAuthorize(hasPermi = "system:order:list")
    @GetMapping("/list")
    public TableDataInfo list(CwPayOrderDto dto)
    {
        startPage();
        List<CwPayOrderDto> list = cwPayOrderService.listAll(dto);
        return getDataTable(list);
    }
}
